package com.formina.engine;


import java.util.ArrayList;
import java.util.List;

import android.content.Context;
import android.view.Display;

public class Engine {
	public static Context CONTEXT;
	/*Constants that will be used in the game*/
	public static final int GAME_THREAD_DELAY = 4000;
	public static final int GAME_THREAD_FPS_SLEEP = (1000/60);	
	public static final int PLAYER_FORWARD = 1;
	public static final int PLAYER_RIGHT = 2;
	public static final int PLAYER_LEFT = 3;
	public static final float PLAYER_ROTATE_SPEED = 1f;
	public static final float PLAYER_WALK_SPEED = 0.1f;
	
	/*Game Variables*/
	public static int playerMovementAction = 0;
	public static Context context;
	public static Display display;
	public static ModelInfo Star;
	public static ModelInfo StarParticle;
	public static ModelInfo Comet;
	public static ModelInfo CometTail;
	public static Boolean UseRandomColors = true;
	public static float[] DefaultColor = {1f,1f,1f,1f};
	public static int[] Textures = new int[10];
	
	public static int HEIGHT = 0;
	public static int WIDTH = 0;

	public static List<Pointer> Pointers = new ArrayList<Pointer>();

	public static Pointer GetPointer(int id){
		for(Pointer p: Pointers){
			if(p.Id == id){
				return p;
			}
		}
		Pointer p =new Pointer();
		p.Id = id;
		Pointers.add(p);
		return p;
	}
}
